<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="derivacion-respuesta.aspx.cs" Inherits="WebContratos.derivacion_respuesta" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Intranet - El&eacute;ctrica de Guayaquil</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <script type="text/javascript">
    var basePath = '<%=basePath%>';
    var pathToImages = '<%=basePath%>images/';
  </script>
  <link rel="stylesheet" href="<%=basePath%>css/htmldb_V2.css"
              type="text/css"/>
  <script src="<%=basePath%>js/menu.js" type="text/javascript"></script>
  <script src="<%=basePath%>js/tablas.js" type="text/javascript"></script>
  <link rel="stylesheet" href="<%=basePath%>css/estilos.css" type="text/css"/>
  <link rel="stylesheet" href="<%=basePath%>dhtmlgoodies_calendar/dhtlmgoodies_calendar.css" type="text/css"/>
  <link href="<%=basePath%>images/91.ico" rel="shortcut icon"
        type="image/x-icon"/>
  <script type="text/javascript" src="<%=basePath%>js/general.js"></script>
  <script type="text/javascript" src="<%=basePath%>js/funciones.js"></script>
  <link rel="stylesheet" href="<%=basePath%>css/estiloTablas.css" type="text/css"/>
  <script type="text/javascript" src="<%=basePath%>dhtmlgoodies_calendar/dhtlmgoodies_calendar.js"></script>
  
  <style type="text/css">
		.cajaTexto
		{
			font-size:11px; font:Tahoma;
			border-left:#6699CC 1px solid; border-bottom:#4167B0 1px solid;
			border-right:#6699CC 1px solid; border-top:#4167B0 1px solid;  
		}
		 .btnCrm
	 { width:84px; height:22px; 
	   border-left:#6699CC thin solid; border-bottom:#4167B0 thin solid;
	   border-right:#6699CC thin solid; border-top:#4167B0 thin solid; 
	       font-size: 11px;
          background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #D0E5F7),color-stop(1, #B9D5EF));
      }
	 
	 #button:active { 
	position:relative; 
	top:1px /* or more */ 
	} 
  .Estilo1 {
	font-family: Tahoma;
	font-weight: bold;
	font-size: 11px;
}
  .Estilo2 {
	font-family: Tahoma;
	font-size: 11px;
}
  .Estilo4 {font-family: Tahoma; font-weight: bold; font-size: 11px; color: #FFFFFF; }
      .tableDatos
      {
          height: 20px;
          width: 90%;
      }
      .style1
      {
          width: 144px;
      }
  </style>
  
</head>
 <body bgcolor="#ffffff"> 
    <form id="frmTramite" runat="server">
    <div>
    <table style="width:100%"  summary="Submitted table designs" cellSpacing=0 cols=0 cellPadding=0>
			    <tr>
				<td style="width:1%"  align="left">
					<div style="height: 35px; font-weight: bold; font-size: 18px; color: #6699cc; font-family: Tahoma;">
						  <img src="<%=basePath%>images/ico_downloadwebservicedesc.gif" 
							   loop="0"/>
					</div>
				 </td>
				 <td align="left" valign="bottom" style="width:80%">
					   <span style="height: 35px; font-weight: bold; font-size: 18px; color: #3A5389; font-family: Tahoma;"> Derivacion de Tr&aacute;mites para Contratos</span>
				 </td>
				 <td id="trQuejas" style="width:17%; visibility:hidden; display:none">									
					<table id="mensajePos" cellSpacing=0 cols=0 cellPadding=0 style=" width:100%; height:26px; background-color:#FFFFAE; border-top: #C5C5C5 1px solid; border-bottom:#C5C5C5 1px solid; border-right:#C5C5C5 1px solid; border-left:#C5C5C5 1px solid">
					    <tr>
			  		<td noWrap>
							<img src="<%=basePath%>images/importwizardinfo.gif">
					  </td>
					  <td style="width:1%">
					  </td>
							<td>
							<span class="style6" id="spanMensaje"></span>					
							</td>
						</tr>
					</table>					   
				  </td>
	   </tr>
   </table>
   
	  
            <div style="left:250px;top:10px; width:100%; z-index:1;background-color: efefef;border-style:solid;border-width:thin 0.5px;" id="divCab" align="right">
                <span class="Estilo1">Numero de Contrato :</span><a href="#" class="Estilo2"
                                                    style="color:Red; font-weight:bold; text-decoration:none;" onclick=""><asp:Label
                                                        ID="lblCodContrato" runat="server"></asp:Label></a>
                <input type="hidden" id="txtNumeroTramite" name ="txtNumeroTramite" value="<%=codContrato%>"/>
                <input type="hidden" id="txtSecuencia" name ="txtSecuencia" value="1"/>
                <input type="hidden" id="txtAccionTramite" name ="txtAccionTramite" value="DERIVAR"/>
                <%
                    /*TramitesManager tm = new TramitesManager((ConfigBean)session.getAttribute("ConfigBean"));
                  CabeceraTramiteBean ctb = tm.getCabeceraTramite(request.getParameter("numero_tramite")); */%>
               
			   <table bgcolor="#EAF3FF" border="1"  style="width: 100%; height: auto; 							 
                        	  font-size: 11px; font-family: Tahoma; border-bottom: #b0c2d0 1px solid; border-left: #b0c2d0 1px solid; border-right: #b0c2d0 1px solid; border-top: #b0c2d0 1px solid  " cellpadding="0" cellspacing="0">
							  
                    <tr>
                        <td><div align="left"><strong>Remitente:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblRemitente" runat="server"></asp:Label>
                            </div></td>
                        <td><div align="left"><strong>Fecha Tramite:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblFechaTramite" runat="server"></asp:Label>
                            </div></td>
                    </tr>
                    <tr>
                        <td><div align="left"><strong>Clase Tramite:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblClaseTramite" runat="server">CONTRATOS</asp:Label>
                            </div></td>
                        <td><div align="left"><strong>Cod. Documento:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblCodDocumento" runat="server"></asp:Label>
                            </div></td>
                    </tr>
                    <tr>
                        <td><div align="left"><strong>Anexos:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblAnexos" runat="server">NINGUNO</asp:Label>
                            </div></td>
                        <td><div align="left"><strong>Asunto:</strong></div></td>
                        <td><div align="left">
                            <asp:Label ID="lblAsunto" runat="server">INGRESO DE CONTRATOS</asp:Label>
                            </div></td>
                    </tr>
                </table>
        </div>
           <table>
				     <tr>
					    <TD style="height:10%">
						</TD>						
					 </tr>
				  </table>
        <asp:Panel ID="pnlDerivarContrato" Visible="true" runat="server">
            <DIV style="left:250px;top:20px; width:100%;  z-index:1;background-color: #efefef;border-style:solid;border-width:thin 0.5px;" id="divDeriv" >                        
                        <table bgcolor="#EAF3FF"  style="width: 100%; height: auto; 							 
                        	  font-size: 11px; font-family: Tahoma; border-bottom: #b0c2d0 1px solid; border-left: #b0c2d0 1px solid; border-right: #b0c2d0 1px solid; border-top: #b0c2d0 1px solid  " cellpadding="0" cellspacing="0">
							  
							<tr bgcolor="#6699CC">
							  <td colspan="4" align="center">							  
                        		<span class="Estilo4">DERIVAR TRAMITE</span></td>
							</tr>
                                <tr>
                                  <td width="15%"><strong>Derivado a:</strong></td>
                                  <td align="left" class="style1">
                                    <table align="left" border="0" cellpadding="0" cellspacing="0" class="tableDatos">
                                            <tr>
                                            <td width="79%">
                                               
                                                <asp:DropDownList ID="LstUsuarioContinuaF" runat="server" 
                                        CssClass="cajaTexto" DataSourceID="SqlDataSource10" 
                                        DataTextField="NOMBRE" DataValueField="USER_USUARIO" 
                                         Width="170px">
                                                </asp:DropDownList>
                                    <asp:SqlDataSource ID="SqlDataSource10" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" 
                                        ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>" SelectCommand="select w.user_usuario, (w.user_nombre||' '||w.user_apellido) nombre from t_usuflujo t, web_usuarios w
where t.user_usuario = w.user_usuario
and id_flujo = 2"></asp:SqlDataSource>
                                                
                                              
                                            </td>
                                            <td align="left">
                                                
                                            </td>
                                            </tr>
                                    </table>
                                  </td>
                                  <td><strong>Derivado por:</strong></td>
                                  <td>
                                    <%/*UsuarioIntranetBean userBean = (UsuarioIntranetBean)session.getAttribute("UserBean");*/%>
                                    <asp:TextBox ID="txtDerivadoPor" ReadOnly="true" CssClass="cajaTexto" runat="server"></asp:TextBox>
                                    
                                  </td>
                                </tr>
                                <tr>
                                    <td><strong>Doc. Derivado:</strong></td>
                                    <td class="style1">
                                        
                                        <asp:FileUpload ID="txtDocDeriv" runat="server" CssClass="cajaTexto" />
                                    
                                    </td>
                                    <td>&#160;</td>
                                    <td>&#160;</td>
                                </tr>
                                <tr>
                                    <td><strong>Observacion:</strong></td>
                                    <td colspan="3">
                                    
                                        <asp:TextBox ID="txtAccion" runat="server" CssClass="cajaTexto" Height="50px" 
                                            MaxLength="20" TextMode="MultiLine" Width="99%"></asp:TextBox>
                                    
                                    </td>
                                </tr>
                    </table>
                  </DIV>
        </asp:Panel>
                  
				  <table>
				     <tr>
					    <TD style="height:10%">
						</TD>						
					 </tr>
				  </table>
				  
				  <asp:Panel ID="pnlRespuesta" Visible="false" runat="server">
                  <DIV style="left:250px;top:210px; width:100%; z-index:1;background-color: #efefef;border-style:solid;border-width:thin 0.5px;" id="divResp">
                        <table bgcolor="#EAF3FF" style="width: 100%; height: auto; 							 
                        	  font-size: 11px; font-family: Tahoma; border-bottom: #b0c2d0 1px solid; border-left: #b0c2d0 1px solid; border-right: #b0c2d0 1px solid; border-top: #b0c2d0 1px solid  " cellpadding="0" cellspacing="0">
							  
							<tr bgcolor="#6699CC">
							  <td colspan="4" align="center">							  
                        		<span class="Estilo4">RESPONDER A								</span></td>
							</tr>
                                <tr>
                                    <td width="15%" ><strong>Responder a:</strong></td>
                                    <td colspan="3"><input id="txtResponderA" name="txtResponderA" size="15" class="cajaTexto" readonly="readonly" value="Responder a "/></td>
                                </tr>
                                <tr>
                                    <td width="15%" ><strong>Respuesta:</strong></td>
                                    <td colspan="3"><TEXTAREA COLS=88 ROWS=3 NAME="txtRespuesta" id="txtRespuesta" class="cajaTexto"></TEXTAREA></td>
                                </tr>
                                <tr>
                                 <td><strong>Doc. Respuesta:</strong></td>
                                    <td>
                                    <input type="file" id="txtDocResp" name="txtDocResp" class="cajaTexto"/>
                                    </td>
                                    <td><strong>Cod. Docto:</strong></td>
                                    <td><input id="txtCodDocResp" name="txtCodDocResp"  maxlength="20" class="cajaTexto"/></td>
                                </tr>
                                <tr>
                                    <td><strong>Archivado:</strong></td>
                                    <td colspan="3"><TEXTAREA COLS=88 ROWS=3 NAME="txtArchivado" id="txtArchivado" class="cajaTexto" onKeyDown="valida_longitud_textarea(this.id,200)" onKeyUp="valida_longitud_textarea(this.id,200)"></TEXTAREA></td>
                                </tr>
                    </table>
                  </DIV>
				  </asp:Panel>
				  <table>
				     <tr>
					    <TD style="height:10%">
						</TD>						
					 </tr>
				  </table>
				  
                  <DIV style="left:250px;top:400px; width:100%; z-index:1;background-color: #efefef;border-style:solid;border-width:thin 0.5px;" id="divBoton">
                  <table bgcolor="#EAF3FF" border="1"  style="width: 100%; height: auto; 							 
                        	  font-size: 11px; font-family: Tahoma; border-bottom: #b0c2d0 1px solid; border-left: #b0c2d0 1px solid; border-right: #b0c2d0 1px solid; border-top: #b0c2d0 1px solid  " cellpadding="0" cellspacing="0" align="center">
                    <tr>
                        <td>
                            &nbsp;<asp:Button ID="btnProcesar" runat="server" CssClass="btnCrm" 
                                onclick="btnProcesar_Click" Text="Procesar" />
                        </td>
                    </tr>
                  </table>
    </div>
    </form>
</body>
</html>
